x11: Set GDK_PIXBUF_ENABLE_BACKEND before including files
authorBenjamin Otte <otte@redhat.com>
Mon, 18 Oct 2010 16:19:17 +0000 (18:19 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 18 Oct 2010 17:22:43 +0000 (19:22 +0200)
Otherwise we get an undefined gdk_pixbuf_set_option().

gdk/x11/gdkcursor-x11.c

index 6fddde869c2494cbb7ac6e124e344b854c209e8a..b01325b2329a7aac3f51be39b349a1066718f7f8 100644 (file)
 
 #include "config.h"
 
+/* needs to be first because any header might include gdk-pixbuf.h otherwise */
+#define GDK_PIXBUF_ENABLE_BACKEND
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
 #include "gdkcursor.h"
 
 #include "gdkprivate-x11.h"
 #include "gdkdisplay-x11.h"
 #include "gdkx.h"
 
-#define GDK_PIXBUF_ENABLE_BACKEND
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
 #include <X11/Xlib.h>
 #include <X11/cursorfont.h>
 #ifdef HAVE_XCURSOR